<?php
//by willson 105328468@qq.com 2014/10/11
//index page interface

class order extends core {

	public function __construct() {
		parent::__construct();
	}

	//延迟发货
	public function delay_shouhuo() {
		$order_id = (isset($_POST['order_id']) && trim($_POST['order_id'])) ? intval($_POST['order_id']) : 0;
		$sql = "UPDATE {$this->tbp}order SET delay_shouhuo_time='".time()."' WHERE id='{$order_id}' AND member_id='{$this->member_id}'";
		$this->db->query($sql);
		success("ok");
	}

	//提醒发货
	public function ask_shipping() {
		$order_id = (isset($_POST['order_id']) && trim($_POST['order_id'])) ? intval($_POST['order_id']) : 0;
		$sql = "UPDATE {$this->tbp}order SET ask_shipping_time='".time()."' WHERE id='{$order_id}' AND member_id='{$this->member_id}'";
		$this->db->query($sql);
		success("ok");
	}



}
